package com.indusfo.spc.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.indusfo.spc.common.pojo.BasePojo;

import java.util.Date;

/**
 * @author: louk
 * @Description: 工序与工位对应表
 * @date: 2019/11/18 14:14
 *
 */
public class ProStation extends BasePojo {
    /**
     * 主键id
     */
    private Integer proStationId;
    /**
     * 工序id
     */
    private Integer proId;
    /**
     * 工位id
     */
    private Integer stationId;
    /**
     * 创建日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createDate;
    /**
     * 修改日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date modifyDate;
    /**
     * 备注
     */
    private String remark;
    /**
     * 数据状态
     */
    private Integer dataState;

    /**
     * 以上是数据库定义字段,以下是衍生字段
     * @return
     */
    /**
     * 工位编号
     */
    private String stationCode;
    /**
     * 工位名称
     */
    private String stationName;
    /**
     * 车间名称
     */
    private String workshopName;
    /**
     * 产线名称
     */
    private String productlineName;
    /**
     * 数据状态名称
     */
    private String dataStateName;

    public String getDataStateName() {
        return dataStateName;
    }

    public String getStationCode() {
        return stationCode;
    }

    public void setStationCode(String stationCode) {
        this.stationCode = stationCode;
    }

    public void setDataStateName(String dataStateName) {
        this.dataStateName = dataStateName;
    }

    public String getStationName() {
        return stationName;
    }

    public void setStationName(String stationName) {
        this.stationName = stationName;
    }

    public String getWorkshopName() {
        return workshopName;
    }

    public void setWorkshopName(String workshopName) {
        this.workshopName = workshopName;
    }

    public String getProductlineName() {
        return productlineName;
    }

    public void setProductlineName(String productlineName) {
        this.productlineName = productlineName;
    }

    public Integer getProStationId() {
        return proStationId;
    }

    public void setProStationId(Integer proStationId) {
        this.proStationId = proStationId;
    }

    public Integer getProId() {
        return proId;
    }

    public void setProId(Integer proId) {
        this.proId = proId;
    }

    public Integer getStationId() {
        return stationId;
    }

    public void setStationId(Integer stationId) {
        this.stationId = stationId;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public Date getModifyDate() {
        return modifyDate;
    }

    public void setModifyDate(Date modifyDate) {
        this.modifyDate = modifyDate;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark == null ? null : remark.trim().replace(" ","");
    }

    public Integer getDataState() {
        return dataState;
    }

    public void setDataState(Integer dataState) {
        this.dataState = dataState;
    }
}